//
//  YFSegmentView.h
//  project
//
//  Created by yefei on 2019/5/8.
//  Copyright © 2019 健健. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface YFSegmentView : UIView

@property (class, nonatomic, strong, readonly) YFSegmentView *segmentView;

@property (nonatomic, copy) void(^buttonClickAction)(NSInteger idx);
@property (weak, nonatomic) IBOutlet UIButton *profileButton;
@property (weak, nonatomic) IBOutlet UIButton *dongtaiButton;

@property (nonatomic, assign) CGPoint profilePoint;
@property (nonatomic, assign) CGPoint dongtaiPoint;

- (void)controlAnimateWithTimeOffset:(CGFloat)offset endPoint:(CGPoint)endPoint;

/**
 线条滚动
 @param btn 按钮
 */
-(void)animateWithBtn:(UIButton *)btn;

/**
 记录现在是什么按钮选中
 */
//-(void)reloadBtn;

@end

NS_ASSUME_NONNULL_END
